package com.sline.servlet.demo1_servlet._01_base;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebInitParam;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

//@WebServlet(value = "/anno")
//@WebServlet("/anno")
//@WebServlet(value={"/anno", "/anno2"}, loadOnStartup = 0, initParams = @WebInitParam(name = "encoding", value = "UTF-8"))
@WebServlet(value={"/anno", "/anno2"}, loadOnStartup = 0, initParams = {@WebInitParam(name = "encoding", value = "UTF-8"), @WebInitParam(name = "encoding", value = "UTF-8")})
public class _07_Annotation extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("Helloworld");
    }
}
